<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册 - 绝区零社区</title>
    <link rel="stylesheet" href="styles/main.css">
    <link rel="stylesheet" href="styles/register.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-container">
            <div class="logo">
                <img src="images/logo.png" alt="绝区零社区">
                <span>绝区零社区</span>
            </div>
            <div class="nav-links">
                <a href="index.html">首页</a>
                <a href="#">攻略中心</a>
                <a href="#">角色图鉴</a>
                <a href="#">社区论坛</a>
                <a href="#">赛事资讯</a>
            </div>
        </div>
    </nav>

    <!-- 注册表单 -->
    <main class="register-container">
        <div class="register-box">
            <h2>注册账号</h2>
            <form id="registerForm" class="register-form">
                <div class="form-group">
                    <label for="phone">手机号码</label>
                    <div class="input-group">
                        <i class="fas fa-mobile-alt"></i>
                        <input type="tel" id="phone" name="phone" placeholder="请输入手机号码" required>
                    </div>
                    <span class="error-message" id="phoneError"></span>
                </div>

                <div class="form-group">
                    <label for="password">密码</label>
                    <div class="input-group">
                        <i class="fas fa-lock"></i>
                        <input type="password" id="password" name="password" placeholder="请输入密码" required>
                        <i class="fas fa-eye-slash toggle-password"></i>
                    </div>
                    <span class="error-message" id="passwordError"></span>
                </div>

                <div class="form-group">
                    <label for="confirmPassword">确认密码</label>
                    <div class="input-group">
                        <i class="fas fa-lock"></i>
                        <input type="password" id="confirmPassword" name="confirmPassword" placeholder="请再次输入密码" required>
                        <i class="fas fa-eye-slash toggle-confirm-password"></i>
                    </div>
                    <span class="error-message" id="confirmPasswordError"></span>
                </div>

                <div class="form-group">
                    <button type="submit" class="register-submit">注册</button>
                </div>

                <div class="form-footer">
                    <p>已有账号？<a href="login.html">立即登录</a></p>
                </div>
            </form>
        </div>
    </main>

    <script src="js/register.js"></script>
</body>
</html> 